package com.zhongfl.crm.service.boss;

import com.zhongfl.crm.model.boss.OrderAttachment;

/**
 * AttachmentService 励销文件上传到阿里云OSS
 *
 * @author tiantian
 * @date 2018/7/16 19:34
 */
public interface AttachmentService {

    ///**
    // * 将励销文件上传到阿里云OSS
    // *
    // * @param lxFileUrl 励销文件url
    // * @return 文件地址
    // */
    //String uploadLxFile2OSS(String lxFileUrl);

    /**
     * 上传励销文件流到阿里云OSS
     * @param lxFileUrl
     * @return
     */
    String uploadLxFileInputStream2OSS(String lxFileUrl);

    /**
     * 将oss文件与业务单据相关联
     *
     * @param filePath
     * @param orderNo
     * @param workOrderNo
     * @param key
     * @param creator
     * @return
     */
    OrderAttachment save(String filePath, String orderNo, String workOrderNo, String key, String creator);

    OrderAttachment getUrl(OrderAttachment attachment);

    OrderAttachment getUrl(OrderAttachment attachment, String style);
}
